def simple_decorator(func):
    """一个简单的装饰器"""
    def wrapper():
        print("🚀 函数执行前")
        result = func()
        print("✅ 函数执行后")
        return result
    return wrapper

# 使用装饰器
@simple_decorator
def say_hello():
    print("Hello World!")

say_hello()
# 输出:
# 🚀 函数执行前
# Hello World!
# ✅ 函数执行后

def decorator_with_args(func):
    """处理带参数的函数"""
    def wrapper(*args, **kwargs):
        print(f"📞 调用函数: {func.__name__}")
        print(f"📋 参数: args={args}, kwargs={kwargs}")
        return func(*args, **kwargs)
    return wrapper

@decorator_with_args
def greet(name, age=25):
    print(f"Hello {name}, you are {age} years old!")

greet("Alice", age=30)